
package org.example;

/**
 * 班级实体类，存储班级基本信息
 */
public class Class {
    private String classId;       // 班级编号
    private String className;     // 班级名称
    private String classLocation; // 班级地址

    // 构造方法
    public Class(String classId, String className, String classLocation) {
        this.classId = classId;
        this.className = className;
        this.classLocation = classLocation;
    }

    // Getters和Setters
    public String getClassId() { return classId; }
    public void setClassId(String classId) { this.classId = classId; }

    public String getClassName() { return className; }
    public void setClassName(String className) { this.className = className; }

    public String getClassLocation() { return classLocation; }
    public void setClassLocation(String classLocation) { this.classLocation = classLocation; }

    @Override
    public String toString() {
        return "Class{" +
                "classId='" + classId + '\'' +
                ", className='" + className + '\'' +
                ", classLocation='" + classLocation + '\'' +
                '}';
    }
}